package com.thinkingstar.iads.common.utils;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import java.util.Locale;
import java.util.ResourceBundle;

/**
  * @ClassName: SystemProperties 
  * @Description: (获取系统级配置信息) 
  * @author int_java_se@163.com 
  * @date 2016年10月17日 下午9:35:42
 */
public class HtmlPropertiesForSjps {

	private static final Logger LOGGER = LoggerFactory.getLogger(HtmlPropertiesForSjps.class);

	private static Locale locale =  new Locale("zh", "CN");
	private static final ResourceBundle bundle = ResourceBundle.getBundle("htmlTemplateForSjps",locale);
	private static final String _true = "true";
	
	
	/**
	 * 通过键获取值
	 * @param key
	 * @return
	 */
	public static final String get(String key) {
		return bundle.getString(key);
	}
	
	/**
	 * 获取非结构化数据文档
	 * @return
	 */
	public static String getHtmlTemplate(){
		StringBuilder stringBuilder = new StringBuilder();
		stringBuilder.append(HtmlPropertiesForSjps.get("no_btn")).append(HtmlPropertiesForSjps.get("btn"))
		.append(HtmlPropertiesForSjps.get("textarea")).append(HtmlPropertiesForSjps.get("content"))
		.append(HtmlPropertiesForSjps.get("submit_btn")).append(HtmlPropertiesForSjps.get("id"))
		.append(HtmlPropertiesForSjps.get("project_id")).append(HtmlPropertiesForSjps.get("word_div"))
		.append(HtmlPropertiesForSjps.get("pdf_div")).append(HtmlPropertiesForSjps.get("excel_div"))
		.append(HtmlPropertiesForSjps.get("dwg_div")).append(HtmlPropertiesForSjps.get("image"))
		.append(HtmlPropertiesForSjps.get("select_div")).append(HtmlPropertiesForSjps.get("checkbox_div"))
		.append(HtmlPropertiesForSjps.get("radio_div")).append(HtmlPropertiesForSjps.get("inline_text_div"))
		.append(HtmlPropertiesForSjps.get("inline_textarea_div"));
		return stringBuilder.toString();
	}
	
}
